package com.eightbears.beboy;

import android.content.Intent;
import android.graphics.Bitmap;

import com.eightbears.beboy.base.util.SPUtil;
import com.eightbears.beboy.base.view.guide.AbsGuideActivity;
import com.eightbears.beboy.base.view.guide.EntryFragment;
import com.eightbears.beboy.base.view.guide.SinglePage;
import com.eightbears.beboy.ui.login.LoginActivity;
import com.socks.library.KLog;

import java.util.ArrayList;
import java.util.List;


public class GuideActivity extends AbsGuideActivity {

    @Override
    public List<SinglePage> buildGuideContent() {
        List<SinglePage> guideContent = new ArrayList<>();
        SinglePage page_1 = new SinglePage();
        page_1.mBackground = getResources().getDrawable(R.mipmap.page_1);
        guideContent.add(page_1);
        SinglePage page_2 = new SinglePage();
        page_2.mCustomFragment = new EntryFragment();
        guideContent.add(page_2);
        return guideContent;
    }

    @Override
    public boolean drawDot() {
        return false;
    }

    @Override
    public Bitmap dotDefault() {
        return null;
    }

    @Override
    public Bitmap dotSelected() {
        return null;
    }

    @Override
    public int getPagerId() {
        return R.id.guide_container;
    }

    public void entryApp() {
        finishView();
        this.finish();
        SPUtil.setAlreadyLogin();
        Intent intent = new Intent();
        intent.setClass(GuideActivity.this, LoginActivity.class);
        startActivity(intent);
    }
}
